﻿using MVC_Project.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace MVC_Project.Api.Models.MobileGoods
{
    public class MobileGood
    {
        public int id { get; set; }
        public string name { get; set; }
        public string icon { get; set; }
        public int is_show_backstage { get; set; }
        public int sort { get; set; }
        public virtual IEnumerable<Goods> goods_list { get; set; }
    }

    public class Goods
    {
        public int id { get; set; }
        public string name { get; set; }
        public string content { get; set; }
        public string images { get; set; }
        public bool use_spec { get; set; }
        public bool use_property { get; set; }
        public string unit { get; set; }
        public decimal price { get; set; }
        public int sales { get; set; }
        public int sort { get; set; }

        public virtual IEnumerable<GoodProperty> property { get; set; }
    }

    public class GoodProperty
    {
        public int id { get; set; }
        public string name { get; set; }
        public string desc { get; set; }

        public virtual IEnumerable<PropertyValue> values { get; set; }
    }

    public class PropertyValue
    {
        public int id { get; set; }
        public bool is_default { get; set; }
        public string code { get; set; }
        public string value { get; set; }
    }
}